<template>
  <NumberInput
    v-model:value="value"
    sync
    clearable
    :min="-10"
    :max="10"
    style="max-width: 300px"
  ></NumberInput>
  <p>只同步按钮触发的输入:</p>
  <NumberInput
    v-model:value="value"
    sync-step
    clearable
    :min="-10"
    :max="10"
    style="max-width: 300px"
  ></NumberInput>
  <p>Number Input Value: {{ value }}</p>
</template>

<script setup lang="ts">
import { ref } from 'vue'

const value = ref<number>()
</script>
